<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags"%>
<!DOCTYPE html>
<html>
	<head>
		<title>Home page</title>
	</head>
<body>
	<table>
		<tr>
			<td>userId</td>
			<td>userName</td>
			<td>passsword</td>
			<td>enabled</td>
			<td>function</td>
		</tr>
		<c:forEach var="user" items="${users }">
			<tr>
				<td>${user.userId }</td>
				<td>${user.userName }</td>
				<td>${user.password }</td>
				<td>${user.enabled }</td>
				<td>修改&nsbp;&nsbp;删除</td>
			</tr>
		</c:forEach>
	</table>
${sessionScope}
<br/>

<sec:authorize ifAllGranted="ADMIN">
	<a href="admin.jsp">进入管理页面</a> <br/>
</sec:authorize>

<a href="j_spring_security_logout">退出系统</a>
</body>
</html>
